package com.lry.basic.spring.aop.face;

/**
 * @author:刘仁有
 * @desc:
 * @email:953506233@qq.com
 * @data:2019/11/8
 */
public abstract class AbstractPointcutAdvisor implements PointcutAdvisor{

    private String adviceBeanName;
    private String expression;
    private Pointcut pointcut;

    public AbstractPointcutAdvisor() {}

    public AbstractPointcutAdvisor(String adviceBeanName, String expression) {
        this.adviceBeanName = adviceBeanName;
        this.expression = expression;
    }

    @Override
    public Pointcut getPointcut() {
        return this.pointcut;
    }

    @Override
    public String getAdviceBeanName() {
        return this.adviceBeanName;
    }

    @Override
    public String getExpression() {
        return this.expression;
    }
}
